﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Categories.ascx.cs" Inherits="pwblog.Web.Blocks.Categories" %>

<script type="text/javascript">
    $(document).ready(function () {
        $("ul.moduleCategories span").mouseenter(function () {
            $(this).css("background-color", "#42b51e");
        });
        $("ul.moduleCategories span").mouseout(function () {
            $(this).css("background-color", "#009f3b");
        });

    });
</script>

<ul class="moduleCategories">
    <asp:Repeater ID="cateRepeater" runat="server">
        <ItemTemplate>
                    <li>
                        <a href="/Web/ArticlesCategory.aspx?idCategory=<%# Eval("Id") %>">
                            <span><%# Eval("Name") %></span>
                        </a>
                    </li>
        </ItemTemplate>
    </asp:Repeater>
</ul>